home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-19 | 4.8 KB | 199 lines | [TEXT/MPS ] |
- /*
- File: Sample.r
-
- Contains: Location Manager SDK Sample Rez data...
-
- Version: ALM SDK 1.0
- Package: Location Manager SDK 1.0
-
- Copyright: © 1984-1997 by Apple Computer, Inc.
- All rights reserved.
-
- Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- stack. Include the file and version information (from above)
- in the problem description and send to:
- Internet: apple.bugs@apple.com
-
- */
-
- #define UseExtendedThingResource 1
-
- #ifndef __SAMPLE__
- #include "Sample.h"
- #endif // __SAMPLE__
-
- #ifndef __LOCATIONMANAGER_R__
- #include "LocationManager.r"
- #endif // __LOCATIONMANAGER_R__
-
- #ifndef __TYPES_R__
- #include "Types.r"
- #endif // __TYPES_R__
-
- include "Sample.rsrc";
-
- // --------------------------------------------------------------------------------------
-
- // Information for the component manager -- be sure to change the subtype!
-
- resource 'thng' (128, "Generic Module") {
- kALMComponentType,
- 'MSWD', // Component Subtype--must be unique!
- '????', // Component Manufacturer
- 0x0, // Flags (32 bits)
- kAnyComponentFlagsMask,
- kExecutableRsrcType, kExecutableRsrcID,
- kNameRsrcType, kNameRsrcID,
- kDescRsrcType, kDescRsrcID,
- kIconRsrcType, kIconRsrcID,
- 0x0, // Version
- componentDoAutoVersion,
- kIconRsrcID,
- {} // No platform info
- };
-
- resource kNameRsrcType (kNameRsrcID, "Module Name") {
- "Generic Module"
- };
-
- resource kDescRsrcType (kDescRsrcID, "Module Description") {
- "This is the Generic Sample module for Location Manager SDK."
- };
-
- // Internationalization in an easy place for internationalizers to get at it...
-
- resource kINTLrsrcType (kINTLrsrcID, "Script Info") {
- kALMScriptInfoVersion,
- smRoman, // Script
- verUS, // Version
- langEnglish, // Language
- 10, // Size
- "Geneva" // Font
- };
-
- // So that the Generic module can be customized, a list of applications, and
- // pairs of preference file resources...
-
- resource kAppsRsrcType (kAppsRsrcID, "Apps to Quit") {{
- "MSWD", quitOnGetOrSet
- }};
-
- resource kFilesRsrcType (kFilesRsrcStartID, "Word Settings (5)") {
- "Word Settings (5)"
- };
-
- resource kRestartRsrcType (kRestartRsrcStartID, "Word Settings (5)") {
- kNoRestart
- };
-
- // --------------------------------------------------------------------------------------
-
- // Error messages; keep positions in sync with the error numbers...
-
- resource 'STR#' (kSampleErrStrRsrcID, "Errors") {{
- "Could not import because preferences on this machine match dates on imported set, "
- "so there would be no way to tell them apart.",
- "Could not quit an application using module’s preferences.",
-
- ""
- }};
-
- resource 'STR#' (kSampleMiscStrRsrcID, "Misc Messages") {{
- "Preference files containing ^0 modified at ^1 on ^2.",
-
- ""
- }};
-
- // --------------------------------------------------------------------------------------
-
- // Handy template resources so that we can use ResEdit/Resourcerer...
-
- resource 'TMPL' (10000, kINTLrsrcTypeString, purgeable) {{
-
- "Header Version", "DWRD",
- "Script Code", "DWRD",
- "Region Code", "DWRD",
- "Language Code", "DWRD",
- "Default Font Size", "DWRD",
- "Default Font Name", "PSTR"
-
- }};
-
- resource 'TMPL' (10001, "thng", purgeable) {{
-
- "Component Type", "TNAM",
- "Component Subtype", "TNAM",
- "Component Manufacturer", "TNAM",
- "Register Component", "BBIT",
- "Fast Dispatch Calls", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Type Flags", "HBYT",
- "Subtype Flags", "HBYT",
- "Manufacturer Flags", "HBYT",
- "Flag Mask", "HLNG",
- "Code Resource Type", "TNAM",
- "Code Resource ID", "DWRD",
- "Name Resource Type", "TNAM",
- "Name Resource ID", "DWRD",
- "Info Resource Type", "TNAM",
- "Info Resource ID", "DWRD",
- "Icon Resource Type", "TNAM",
- "Icon Resource ID", "DWRD",
- "Component Version", "HLNG",
- "Registration Flags", "HLNG",
- "Icon Family", "DWRD",
- "Reserved", "DWRD",
- "Platform Count", "OCNT",
- "*****", "LSTC",
- "Component Flags", "HLNG",
- "Code Type", "HLNG",
- "Code ID", "DWRD",
- "Platform ID", "DWRD",
- "*****", "LSTE"
-
- }};
-
- resource 'TMPL' (10002, kAppsRsrcTypeString, purgeable) {{
-
- "Application Signatures", "OCNT",
- "*****", "LSTC",
- "App Sig", "TNAM",
- "OnSet", "BBIT",
- "OnGet", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Align", "AWRD",
- "*****", "LSTE"
-
- }};
-
- resource 'TMPL' (10003, kFilesRsrcTypeString, purgeable) {{
-
- "File Name", "PSTR",
-
- }};
-
- resource 'TMPL' (10004, kRestartRsrcTypeString, purgeable) {{
-
- "Restart", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Reserved", "BBIT",
- "Align", "AWRD",
-
- }};
-
-